package com.ad_hccm.service.impl;

import com.ad_hccm.dao.UserDao;
import com.ad_hccm.domain.User;
import com.ad_hccm.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * TODO 医生ServiceImpl
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao dao;
    @Override
    public boolean save(User domain) {
        return dao.save(domain);
    }

    @Override
    public boolean update(User domain) {
        return dao.update(domain);
    }

    @Override
    public User getByAccount(String account) {
        return dao.getByAccount(account);
    }

    @Override
    public List<User> getAll() {
        return dao.getAll();
    }
}
